<template>
  <!--<main-layout>-->
    <div>
      <p>Welcome home</p>
      <test1></test1>
    </div>
  <!--</main-layout>-->
</template>

<script>
  // import MainLayout from '../layouts/Main.vue'
  import test1 from '../components/testComponent.vue';
  export default {
    components: {
      test1
    },
    data:function(){
      return {
        user: JSON.parse(sessionStorage.getItem('user')),
        hid: '',
        userType: Number,
        
      }
    },
    mounted:function(){
      this.hid = this.user.HospitalId;
      this.userType = this.user.userType;
      
      console.log('user:',this.user);
    }
  }
</script>
